package com.sram.controller.common.base;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/3/16.
 */
public interface BaseMapper<T,ID extends Serializable> {
    /* insert数据库字段有default,default是不会起作用的*/
     /* insertSelective不会忽略default*/
    int deleteByPrimaryKey(ID id);
    int insert(T record);
    int insertSelective(T record);
    T selectByPrimaryKey(ID id);
    int updateByPrimaryKeySelective(T record);
    int updateByPrimaryKeyWithBLOBs(T record);
    int updateByPrimaryKey(T record);

}
